
"use strict";

angular.module('app.jurisdiction').controller('AddActionCtrl', function ($scope,$http) {

    //配置分页基本参数
    $scope.paginationConf = {
        currentPage: 1,
        itemsPerPage: 10,
        pagesLength: 5,
        totalItems: 20,
        perPageOptions: [10, 20, 30, 40, 50],

        onChange: function () {
        }
    };
    var GetData = function () {
     $scope.paginationConf.totalItems = 1;
     $http.get('api/actions.json').then(function(res){
      // console.log(res.data);
      $scope.datas = res.data;
     })
    }
    GetData();

    //编辑动作信息
    $scope.showEditAlert = function(){

    }
    $scope.$watch('paginationConf.currentPage + paginationConf.itemsPerPage', GetData);
    // 添加动作信息
  
});